<?php


namespace app\server\model;

use app\index\model\Base;
class Goods extends Base
{
    protected  $pk = 'goods_id';
    public function goodsImg()
    {
        return $this->hasMany('GoodsImg','goods_id','goods_id');
    }
    public function goodClass()
    {
        return $this->belongsTo('Goodclass','good_class','id');
    }
}